package com.hwl.demo15.service;

/**
 * 公司抽象类
 *
 * @author sentry
 * @since 2023-03-25
 */
public abstract class Company {

    protected String name;

    public Company(String name) {
        this.name = name;
    }

    public abstract void add(Company company);

    public abstract void remove(Company company);

    /**
     * 显示
     */
    public abstract void display(int depth);

    /**
     * 履行职责
     */
    public abstract void lineOfDuty();
}
